@echo off
setlocal enabledelayedexpansion

call jar-compile.bat

set testDir[0]=A
set testDir[1]=B
set testDir[2]=C
set testDirFilesNum[0]=15
set testDirFilesNum[1]=18
set testDirFilesNum[2]=18

for /l %%i in (0, 1, 2) do (
    set curFilesNum=!testDirFilesNum[%%i]!
    set curTestDir=!testDir[%%i]!
    for /l %%j in (1, 1, !curFilesNum!) do (
        set inputname=testcases\02_parser\!curTestDir!\testfile\testfile%%j.txt
        set outputname=testcases\02_parser\!curTestDir!\output\output%%j.txt
        java -ea -jar target/sys-y-compiler.jar !inputname! -cp !outputname!
    )
)

endlocal
